package com.cw.auth.application.convert;

import com.cw.auth.application.dto.AuthUserDTO;
import com.cw.auth.domain.entity.AuthUserBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthUserDTOConverter {
        AuthUserDTOConverter INSTANCE = Mappers.getMapper(AuthUserDTOConverter.class);

        List<AuthUserDTO> convertBoToDTOList(List<AuthUserBO> authUserBOList);

        // 通过AuthUserDTO转化为AuthUserBO
        AuthUserBO convertDtoToBO(AuthUserDTO authUserDTO);

    AuthUserDTO convertBoToDTO(AuthUserBO authUserBO);
}
